	NEOGEO POCKET TECHNICAL DOCUMENTATION 1.0
	By Gollum (c) 2000 Emu5ever

Specs :
-----
- 16-bit CPU TOSHIBA TLCS-900h at 6.144 Mhz
- 8-bit CPU Z80 for sound at 3.072 Mhz
- Screen size is 160x152 pixels
- Two virtual screens with scrolling : foreground and background screens
- 64 sprites/frame
- 4 colors/sprite and 4 colors/tile (including transparency color)
- 48 palettes (16 for sprites, 16 for foreground screen and 16 for background screen)
- There are 146 colors possible out of 4096 (colors in 444 RGB format)

Memory Map :
----------

000000 -> 006FFF Cpu RAM
007000 -> 007FFF Sound RAM
008000 -> 00???? Video RAM
200000 -> 2FFFFF ROM (GAME CARTRIDGE)
FF0000 -> FFFFFF NEOGEO POCKET BIOS (64 Ko)

Interesting Memory Locations :
----------------------------

6F87 	     : Language (?)
		0 = Japanese
		1 = English
6F91 	     : Color Mode Selection
		00 = Neogeo Pocket Classic (Black & White)
		10 = Neogeo Pocket Color
8002 	     : X Start
8003 	     : Y Start
8004 	     : X Size (usually A0 = 160)
8005 	     : Y Size (usually 98 = 152)
8009         : Current Y line
8034         : Background Scroll X
8200 -> 827F : Sprite Palette Table
		16 palettes * 4 colors x 2 bytes
		R=G=B=0..15 (4 bits)
		1st byte = GB
		2nd byte = 0R
8280 -> 82FF : Foreground Palette Table
		see Sprite Palette Table
8300 -> 837F : Background Palette Table
		see Background Palette Table
8800 -> 88FF : Sprites
		64 sprites x 4 bytes (word-byte-byte)
		word = pattern number
		1st byte = x position
		2nd byte = y position			
8C00 -> 8FFF : Sprites Palette Numbers (?)
9000 -> 97FF : Foreground Map
		32 tiles x 20 tiles
		1 tile=2 bytes
		1st byte TTTTTTTT
		2nd byte H..PPPPT
		H=horizontal flipping (1 bit)
		P=palette number (0..15) (4 bits)
		T=tile number into pattern table (9 bits)
9800 -> 9FFF : Background Map
		32 tiles x 20 tiles
		see Foreground Map
A000 -> ???? : Pattern Table
		1 tile=8x8 pixels=16 bytes
		1 byte=4 pixels
		2 bits=colour (0..3)
		bits order : 10 32 54 76
